package org.yzh.web.model.util;

import io.jsonwebtoken.Jwts;
import org.springframework.stereotype.Component;

import javax.crypto.SecretKey;


@Component
public class TokenUtil {


    public String generateToken(String clientId) {
        SecretKey key = Jwts.SIG.HS256.key().build();
        return Jwts.builder().subject(clientId).signWith(key) .compact();
    }
}
